﻿<%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage<dynamic>" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>Index</title>
</head>
<body>
    <div>
        <h1>Test for Authorise Framework</h1>

        <%:Html.AuthorisedActionLink(ViewData["model"],"link_sendsms","Other") %>
        <%:Html.AuthorisedActionLink(ViewData["model"], "link_smstemplate", "SMS Template(from Html)","Other")%>

        <%using (Html.BeginForm("CatchData","TestAuthorise"))
          { %>

          <%:Html.AuthorisedInput(ViewData["model"],"Alias") %>
          <%:Html.AuthorisedInput(ViewData["model"], "DisplayName")%>
          <%:Html.AuthorisedInput(ViewData["model"], "Password")%>
          <br />
          <%:Html.AuthorisedInput(ViewData["model"], "IsAdmin")%>
                    <%:Html.AuthorisedInput(ViewData["model"], "IsRadio1")%>
                    <%:Html.AuthorisedInput(ViewData["model"], "IsRadio2")%>
          <%:Html.AuthorisedInput(ViewData["model"], "selector")%>

        
        <%:Html.AuthorisedInput(ViewData["model"], "TextArea")%>
          <%:Html.AuthorisedInput(ViewData["model"], "Button")%>
          <%:Html.AuthorisedInput(ViewData["model"], "Submit")%>
        <%} %>

    </div>
</body>
</html>
